package edu.pku.sei.transformation.editor.model;

import org.w3c.dom.Element;

import edu.pku.sei.gefcommon.descriptor.annotation.MethodProperty;
import edu.pku.sei.modeler.model.xml.XMLUtility;

public class MetaModel extends edu.pku.sei.modeler.model.core.MetaModel {
	private String filePath = "";

	@MethodProperty(name = "file", catalog = "Transformation", id = ModelPackage.METAMODEL_FILE, setter = "setFilePath")
	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	@Override
	public void serialize(Element root) {
		super.serialize(root);
		XMLUtility.xmlInstance.serializeAttribute(root,
				ModelPackage.METAMODEL_FILE, filePath);
	}

	@Override
	public void deSerialize(Element root) {
		super.deSerialize(root);
		this.filePath = XMLUtility.xmlInstance.deSerializeString(root,
				ModelPackage.METAMODEL_FILE);
	}

}
